package com.xbongbong.pro.rabbitmq.feign;

import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import com.xbongbong.pro.score.pojo.dto.ScoreRabbitMqDTO;
import com.xbongbong.pro.score.pojo.vo.ScoreMessageRabbitMqVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 评分 内部调用接口(消息用)
 * @author chunyang.qin
 * @date 2020/12/7 15:23
 * @since v1.0
 * @version v1.0
 */
@FeignClient(name = "pro-web-pc",contextId = "scoreFeignClient")
public interface ScoreFeignClient {

    /**
     * 更新数据评分
     * @param scoreRabbitMqDTO
     * @return
     */
    @RequestMapping(value = "/pro/v1/score/data/update", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<ScoreMessageRabbitMqVO> scoreUpdate(@RequestBody ScoreRabbitMqDTO scoreRabbitMqDTO);
}
